var express = require('express');
var router = express.Router();


const userCon = require('../controllers/userController')

router.get('/allUser', userCon.getUserlist);
router.get('/getUserInfo', userCon.getUserInfo);
router.post('/addUser', userCon.addUser);
router.post('/changePasswd', userCon.changePasswd);
router.post('/delUser', userCon.delUser);
router.post('/login', userCon.userLogin);
router.get('/logout', userCon.userLogout);


module.exports = router;